package com.panshi.modules.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyh
 * @since 2020-08-02
 */
@Data
@Component
@EqualsAndHashCode(callSuper = false)
public class UserDynamic implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户动态表ID
     */
      @TableId(value = "id", type = IdType.AUTO)
      @ApiModelProperty(value = "用户动态表ID")
    private Long id;

    /**
     * 关联ID(文章,问题,回答)
     */
    @ApiModelProperty(value = "关联ID(文章,问题,回答)")
    private Long tId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 类型:10-文章,20-问题,30-回答
     */
    @ApiModelProperty(value = "类型:10-文章,20-问题,30-回答")
    private Integer type;

    /**
     * 是否删除,0-删,1-未删
     */
    @TableLogic
    @ApiModelProperty(value = "是否删除,0-删,1-未删")
    private Integer deleted;


}
